home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD021b.dsk
/
MAKE.DISPLAY.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
3KB
|
74 lines
0 TEXT : NORMAL : SPEED= 255
4 O = 1
5 CR = 1
6 U$ = "I":L$ = "J":R$ = "K":D$ = "M"
7 UR$ = "O":DR$ = ",":DL$ = "N":UL$ = "U"
8 T$ = "T"
9 S$ = "<CTRL-S>":N$ = "<CTRL-D>"
10 HOME : VTAB 10: INPUT "WHAT IS YOUR MESSAGE?";M$
11 I$ = "F"
15 DIM A$(256): FOR G = 1 TO LEN(M$):A$(G) = MID$ (M$,G,O): NEXT
17 PRINT : INPUT "WHAT IS YOUR STARTING VTAB POSITION?";V
20 DIM H(1000),V(1000)
30 INPUT "WHAT IS YOUR STARTING HTAB POSITION?";SH
31 HOME
35 V = 12:H = SH
40 VTAB V: HTAB H: GET A$
50 IF A$ = U$ THEN VN = -O:HN = 0
60 IF A$ = UL$ THEN VN = -O:HN = -O
70 IF A$ = L$ THEN HN = -O:VN = 0
80 IF A$ = DL$ THEN HN = -O:VN = O
90 IF A$ = D$ THEN HN = 0:VN = O
100 IF A$ = DR$ THEN HN = O:VN = O
110 IF A$ = R$ THEN HN = O:VN = 0
120 IF A$ = UR$ THEN HN = O:VN = -O
121 IF A$ = S$ THEN SF = 1: GOTO 40
122 IF A$ = N$ THEN SF = 0: GOTO 40
125 IF A$ = T$ THEN 31000
130 IF A$ = "S" THEN 2000
140 H = H +HN:V = V +VN
145 C = C +1:H(C) = H:V(C) = V
160 INVERSE : VTAB V: HTAB H: PRINT " ";
165 HN = 0:VN = 0
170 GOTO 40
240 PRINT "0 DIM H(";C +1;"): DIM V(";C +1" ;"): DIM A$(255):M$ = "; CHR$ (34);M$; CHR$ (34);": GOSUB 29000"
2000 NORMAL : PRINT : PRINT "<CTRL-D>BSAVE PAGE,A1024,L1024"
2010 HOME : VTAB 10: INPUT "WHAT FILE SHOULD THIS BE SAVED TO?";SF$
2020 PRINT "<CTRL-D>";"OPEN";SF$
2021 PRINT "<CTRL-D>CLOSE";SF$
2022 PRINT "<CTRL-D>DELETE";SF$
2023 PRINT "<CTRL-D>OPEN";SF$
2030 PRINT "<CTRL-D>";"WRITE";SF$
2040 PRINT "0 DIM H(";C +5;"):DIM V(";C +5;"):DIM A$(255): M$="; CHR$(34);M$; CHR$(34);":GOSUB 29000:O=1"
2045 PRINT "28999 END
2050 PRINT "29000 FOR G=1 TO LEN(M$):A$(G)=MID$(M$,G,1):NEXT:RETURN"
2055 PRINT "31000 NORMAL:IF SF THEN INVERSE"
2056 POKE 33,33
2060 LIST 31030 -31120: PRINT "31130 RETURN"
2065 TEXT
2080 BN = 32000
2100 FOR P = 1 TO C:BN = BN +1: PRINT BN;"DATA";H(P);","V(P): NEXT
2110 PRINT "1 GOSUB ";BN +10
2115 PRINT BN +5;"DATA"; -1;","; -1
2120 PRINT BN +10;"C=C+1:READ H(C):READ V(C):IF H(C)<>-1 THEN ";BN +10
2130 PRINT BN +20;"C=C-2:RETURN"
2200 PRINT "<CTRL-D>CLOSE";SF$
2205 PRINT "<CTRL-D>BLOAD PAGE"
2210 P = PEEK( -16368): GOTO 40
31000 PRINT : PRINT CHR$(4);"BSAVE PAGE,A1024,L1024"
31010 HOME
31020 NORMAL : IF SF THEN INVERSE
31030 X = O
31040 M = LEN(M$):S$ = " "
31050 M = M +1
31060 FOR G = 1 TO C -M
31070 VTAB V(G) +VA: HTAB H(G) +HA
31075 PRINT S$;
31080 VTAB V(G +X) +VA
31085 HTAB H(G +X) +HA
31087 PRINT A$(X);
31090 X = X +O: IF X <M THEN 31080
31100 X = O
31110 NEXT
31120 PRINT
31130 PRINT CHR$(4)"BLOAD PAGE":P = PEEK( -16368): GOTO 40